/*
 * @Description:
 * @Author: fhw
 * @Date: 2023-02-20 10:25:59
 */
import { Module } from '@nestjs/common';
import { RoleService } from './role.service';
import { RoleController } from './role.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { RoleEntity } from './entities/role.entity';
import { JwtModule } from '@nestjs/jwt';
import { jwtConstants, signOptions } from 'src/common/auth/constants';

@Module({
  imports: [
    TypeOrmModule.forFeature([RoleEntity]),
    JwtModule.register({
      secret: jwtConstants.secret,
      signOptions,
    }),
  ],
  controllers: [RoleController],
  providers: [RoleService],
  exports: [RoleService],
})
export class RoleModule { }
